from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy

db = SQLAlchemy()

def create_app(templates,static):
	app = Flask(__name__,template_folder = templates,static_folder = static)
	app.config['SQLALCHEMY_DATABASE_URI'] = 'ibm_db_sa://apue:112358@127.0.0.1:50000/SAMPLE'
	app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
	db.init_app(app)
	return app
